/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ec.socialfun.controladores;

import com.ec.socialfun.datamanager.EventoLocalSucursalDataManager;
import com.ec.socialfun.datamodel.EventoLocalSucursalDataModel;
import com.ec.socialfun.entidades.Evento;
import com.ec.socialfun.excepciones.RegistrarReservaException;
import com.ec.socialfun.servicios.EventoFacade;
import com.ec.socialfun.servicios.EventoUsuarioFacade;
import javax.ejb.EJB;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.AjaxBehaviorEvent;
import org.jboss.logging.Logger;
import org.primefaces.event.SelectEvent;
import org.primefaces.model.LazyDataModel;

/**
 *
 * @author DESARROLLO
 */
@ManagedBean
@RequestScoped
public class EventoLocalSucursalControlador extends PadreControlador {

    private static final Logger LOG = Logger.getLogger(EventoLocalSucursalControlador.class.getName());
    @EJB
    EventoFacade eventoFacade;
    @ManagedProperty(value = "#{eventoLocalSucursalDataManager}")
    private EventoLocalSucursalDataManager eventoLocalSucursalDataManager;
    private LazyDataModel<Evento> EventoLocalSucursalDataModel;
    @EJB
    private EventoUsuarioFacade eventoUsuarioFacade;


    /*Creates a new instance of InformacionLocalesControlador;*/
    public EventoLocalSucursalControlador() {
    }

    public EventoLocalSucursalDataManager getEventoLocalSucursalDataManager() {
        return eventoLocalSucursalDataManager;
    }

    public void setEventoLocalSucursalDataManager(EventoLocalSucursalDataManager eventoLocalSucursalDataManager) {
        this.eventoLocalSucursalDataManager = eventoLocalSucursalDataManager;
    }

    @Override
    public void iniciarDatos() {
    }

    public void filtro(AjaxBehaviorEvent event) {
        LOG.info("evento 1 ");
        LOG.info("evento  " + event);
    }

    public LazyDataModel<Evento> getEventoLocalSucursalDataModel() {
        if (EventoLocalSucursalDataModel == null) {
            EventoLocalSucursalDataModel = new EventoLocalSucursalDataModel();
        }
        return EventoLocalSucursalDataModel;
    }

    public void setEventoLocalSucursalDataModel(LazyDataModel<Evento> EventoLocalSucursalDataModel) {
        this.EventoLocalSucursalDataModel = EventoLocalSucursalDataModel;
    }

}
